from xjlibrary.our_file_dir import BaseDir

with open(r".\new.txt", 'w', encoding="utf-8") as f:
    for line in BaseDir.read_file_r_mode_yield(r".\old.txt"):
        lists = line.split("★")
        oldid = "RDZG_"+str(int(lists[0])*2)+"1"
        newid = lists[1]
        new_lines = oldid+"★"+newid
        f.write(new_lines+"\n")
